<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>黑金网</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <link rel="stylesheet" href="css/sq.css" media="all">
    <style type="text/css">
        #topContainer{
            width: 100%;
            position: relative;
            overflow: hidden;
            background-color: #666666;
            transition: background-color 1s;
        }
        #commodityInfoContainer{
            margin-top: 5px;
            background-color: #FFF;
            padding: 10px;
            margin-bottom: 5px;
        }
        .commodityInfoline{
            overflow: hidden;
            padding: 5px;
        }
        .layui-tab-content{
            background-color: #FFF;
        }
    </style>
</head>
<body>
<div id="topContainer">
    <div id="tranContainer">
        <div class="layui-col-md12">
            <div class="layui-carousel" lay-filter="rollContent" id="rollContent">
                <div carousel-item="">
                    <div><img id="sarousel0" src="img/img1.jpg"></div>
                    <div><img id="sarousel1" src="img/img2.jpg"></div>
                    <div><img id="sarousel2" src="img/img3.png"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="mainContainer">
    <div id="commodityInfoContainer">
        <div class="commodityInfoline">
            <div class="layui-col-xs10 priceBig"><span style="font-size: 16px;">￥</span>16999</div>
            <div class="layui-col-xs2" style="font-size: 10px;"><div style="text-align: center;width: 60px;float: right;"><i class="layui-icon">&#xe600;</i><br>收藏</div></div>
        </div>
        <div class="commodityInfoline">
            <div class="layui-col-xs12 titleBig">
                <span class="popspan">自营</span>掘进机5550X-红色-自动挡/柴油发动机10.0L
            </div>
        </div>
        <div class="commodityInfoline" style="font-size: 12px;color: #F00;">
            <i class="layui-icon" style="margin-right: 3px;">&#xe857;</i>该商品为平台自营商品
        </div>
    </div>
    <div class="layui-tab layui-tab-brief" lay-filter="ddlistSwitch">
        <ul class="layui-tab-title">
            <li class="layui-this">商品介绍</li>
            <li>规格参数</li>
            <li>用户品论</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show" id="allContainer">
                <img src="img/commodity/1.gif" style="width: 100%" />
                <img src="img/commodity/2.gif" style="width: 100%" />
                <img src="img/commodity/3.gif" style="width: 100%" />
                <img src="img/commodity/4.gif" style="width: 100%" />
            </div>
            <div class="layui-tab-item"  id="payContainer">
                910铲车   全款21500 <br/> 920铲车   全款32000<br/>930铲车   全款43000<br/>

                912铲车   全款25000<br/>926铲车   全款36000<br/>936铲车   全款55000<br/>

                915铲车   全款27000<br/>928铲车   全款39000<br/>

                918铲车   全款29000
            </div>
            <div class="layui-tab-item" id="getContainer">
                这里是用户评论列表
            </div>
        </div>
    </div>
</div>
<div id="bottomContent">
    <div class="layui-col-xs6" style="padding-top: 5px;text-align: center;">
        <div class="layui-col-xs4">
            <i class="layui-icon" style="font-size: 22px;">&#xe606;</i>
            <br><span class="spanSmall">联系客服</span>
        </div>
        <div class="layui-col-xs4">
            <i class="layui-icon" style="font-size: 22px;">&#xe68e;</i>
            <br><span class="spanSmall">店铺</span>
        </div>
        <div class="layui-col-xs4">
            <i class="layui-icon" style="font-size: 22px;">&#xe657;</i>
            <br><span class="spanSmall">购物车</span>
        </div>
    </div>
    <div class="layui-col-xs6">
        <div class="layui-col-xs6 commodityShopbt" style="background-color: #fe2213;">
            加入购物车
        </div>
        <div class="layui-col-xs6 commodityShopbt" style="background-color: #ffaa13;">
            立即购买
        </div>
    </div>
</div>
<!--下方为模板部分-->
<!--用户登陆的模板-->
</body>
<script type="text/javascript" src="js/jquery-3.3.1.min.js" language="JavaScript"></script>
<script src="layui/layui.js"></script>
<script src="js/config.js"></script>
<script src="js/echarts.min.js"></script>

<script>
    layui.use(['carousel', 'form'], function() {
        var carousel = layui.carousel;
        carousel.render({
            elem: '#rollContent'
            , width: '100%'
            , height: '180px'
            , interval: 5000
        });
    })
    layui.use('element', function(){
        var $ = layui.jquery
            ,element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块

        //触发事件
        var active = {
            tabAdd: function(){
                //新增一个Tab项
                element.tabAdd('demo', {
                    title: '新选项'+ (Math.random()*1000|0) //用于演示
                    ,content: '内容'+ (Math.random()*1000|0)
                    ,id: new Date().getTime() //实际使用一般是规定好的id，这里以时间戳模拟下
                })
            }
            ,tabDelete: function(othis){
                //删除指定Tab项
                element.tabDelete('demo', '44'); //删除：“商品管理”


                othis.addClass('layui-btn-disabled');
            }
            ,tabChange: function(){
                //切换到指定Tab项
                element.tabChange('demo', '22'); //切换到：用户管理
            }
        };

    });
</script>
</html>